package com.study.controller;

import com.study.model.Order;
import com.study.service.OrderService;
import com.study.util.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: chenhs
 * @date: Created in 20:39 2019/12/1
 **/
@RestController
public class OrderController {

    @Autowired
    private OrderService orderService;

    @RequestMapping("/query")
    public Page<Order> query(int pageNum, int pageSize) {
        return orderService.pageQuery("110", pageNum, pageSize);
    }


}
